import service from './index';
import {  IBindWeiXinParams, IQrCodeBindParams } from '../type';

export const bindWeixin = {
  updateWxBind: (data: IBindWeiXinParams) => {
    return service({
      url: `/openIdManage/updateWxBind`,
      method: 'post',
      data,
    });
  },
  bindWeiXinByQrCode: (params: IQrCodeBindParams) => {
    return service({
      url: `/openIdManage/bindWeiXinByQrCode`,
      method: 'get',
      params
    });
  },
}